<template>
	<div id='have-address' @click='addressChange'>
		<p>
			<span style='font-size:17px;'>{{name}}</span>&nbsp;&nbsp;&nbsp;
			&nbsp;<span style='font-size:16px;'>{{phone}}</span>
		</p>
		<p style='font-size:12px;'>{{address}}</p>
		<span v-if='offIcon' class='el-icon-arrow-right icon-right'></span>
	</div>
</template>

<script>
	export default {
		data(){
			return ({

			});
		},
		props:['name','phone','address','offIcon'],
		methods:{
			addressChange(){
				this.$emit('addressChange');
			}
		},
	}
</script>

<style scoped>
	#have-address{
		height:45px;
		position: relative;
		padding:15px 0;
		background: white;
		text-indent:1rem;
		
	}
	#have-address p:last-of-type{
		line-height: 30px;
    	color: #767676;
	}
	.icon-right{
		position: absolute;
		top:35%;
		right: 1rem;
		font-size:22px;
		color:#999;
	}
</style>